<?php 
	$this->headTitle ( 'Vote' );
?>
<style type="text/css">

	#view-table
	{
		font-family:Verdana, Arial, Helvetica, sans-serif;
		font-size: 11px;
		color: #000;
		background: #fff;
		border-collapse: collapse;
		text-align: left;
	}

	#view-table tr
	{
		font-size: 16px;
		font-weight: bold;
		color: #000;
		padding: 10px 2px 5px 2px;
		border-bottom: 1px solid #373737;
	}

	#view-table td
	{
		color: #4e4e4e;
		padding: 5px 2px 5px 0px;
	}

	#view-table tbody tr:hover td
	{
		font-size: 14px;
		font-weight: bold;
		color: #000;
		background: #efefef; 
	}

	#view-table .odd
	{
		background: #f8f8f8; 
	}
	
</style>
<div id="form-container">
<h1>Vote</h1>
<br />
<?php if ($this->donation): ?>
	<h2>Show Donation Requests</h2>
	<br />
	<?php $projectList = $this->action('list', 'project'); ?>
	<?php if (strpos($projectList, 'table')): ?>
		<?php echo $projectList; ?> 
	<?php else: ?>
		<h3>No Donation Request</h3>
	<?php endif; ?>
<?php else: ?>
	<p>&quot;Oops, seems like you are new to this! You can request a donation but you must have
	contributed at last a little something before. That&lsquo;s the spirit of our community, and it&lsquo;s
	based on the fairness principle. Give a little &ndash; get a little &ndash; or even a little much more.
	Therefore, you must contribute at the very least $1 before you can submit a request for
	a donation.&quot;</p> 
	<p>Click <a href="<?php echo $this->linkTo('donate','donation'); ?>" >here</a> to <a href="<?php echo $this->linkTo('donate','donation'); ?>" >Donate now</a>.</p>
<?php endif; ?>
</div>